/**
 * Created by 123 on 2017/12/12.
 * 问题集
 */
import callApi from '../utils/callApi'
import apiPath from '../utils/apiPath'

/**
 * 获取任务详情
 * @returns {Promise.<*>}
 */
export async function queryTaskDetail(param) {
  const {json, error} = await callApi(GLOBAL.INT.queryTaskDetail, param);

  if (error) {
    return {error: error.message}
  }
  return {res: json}

}
/**
 * 下发整改单
 * @param param
 * @returns {Promise.<*>}
 */
export async function commitRectifyBill(param) {
  const {json, error} = await callApi(GLOBAL.INT.commitRectifyBill, param, 'POST');

  if (error) {
    return {error: error.message}
  }

  return {res: json}

}



